package com.stylefeng.guns.modular.expenditure.service;

import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.stylefeng.guns.core.exception.GunsException;
import com.stylefeng.guns.modular.system.model.Expenditure;
import com.stylefeng.guns.modular.system.model.RmbCashReceipts;

import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author stylefeng123
 * @since 2018-07-02
 */
public interface IExpenditureService extends IService<Expenditure> {

    /**
     * 获取组装银行收支日结报表
     * @return
     * @throws GunsException
     * @author laoyu
     * @date 2018-07-26
     */
    public Page<Expenditure> getBankday(String beginDate,String endDate,String platform,Page<Expenditure> page) throws GunsException;

    /**
     * 描述:导出银行第三收支报表
     * 创建人: xiang
     * 日期: 2018/8/2
     * 时间: 10:15
     */
    public void exportExpenditure(Map<String, Object> map) ;

    /**
     * 描述:添加银行其他收支金额
     * 创建人: laoyu
     * 日期: 2018/8/7 0007
     * 时间: 下午 2:27
     */
    public void addAmount(RmbCashReceipts cashReceipt)throws GunsException;

    /**
     * 描述:删除银行其他收支金额
     * 创建人: laoyu
     * 日期: 2018/8/7 0007
     * 时间: 下午 2:29
     */
    public void deleteAmount(RmbCashReceipts cashReceipt)throws GunsException;

    /**
     * 描述:修改银行其他收支金额
     * 创建人: laoyu
     * 日期: 2018/8/7 0007
     * 时间: 下午 3:26
     */
    public void updateAmount(RmbCashReceipts oldCashReceipt,RmbCashReceipts cashReceipts) throws GunsException;
    /**
     * 描述: 银行收支日结页面合计
     * 创建人: xiang
     * 日期: 2018/8/8
     * 时间: 16:46
     */
    public Expenditure total( Wrapper<Expenditure> wrapper) throws GunsException;






}
